package designPatterns.P06_桥接模式_Bridge.phones;

import designPatterns.P06_桥接模式_Bridge.phones.brands.Huawei;
import designPatterns.P06_桥接模式_Bridge.phones.brands.Vivo;
import designPatterns.P06_桥接模式_Bridge.phones.brands.Xiaomi;

public class P01 {
    public static void main(String[] args) {
        FoldedPhone fpx = new FoldedPhone(new Xiaomi());
        FoldedPhone fph = new FoldedPhone(new Huawei());
        FoldedPhone fpv = new FoldedPhone(new Vivo());
        UprightPhone upx = new UprightPhone(new Xiaomi());
        UprightPhone uph = new UprightPhone(new Huawei());
        UprightPhone upv = new UprightPhone(new Vivo());

        fpx.open();
        fpx.call();
        fpx.close();
        fph.open();
        fph.call();
        fph.close();
        fpv.open();
        fpv.call();
        fpv.close();
        upx.open();
        upx.call();
        upx.close();
        uph.open();
        uph.call();
        uph.close();
        upv.open();
        upv.call();
        upv.close();
    }
}
